home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!intellic.demon.co.uk
- From: Chris Trueman <truemanc@intellic.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: How do I suppress output to the screen?
- Date: Tue, 23 Jan 96 10:22:11 GMT
- Organization: IntelliCorp
- Message-ID: <822392531snz@intellic.demon.co.uk>
- References: <DLM5xr.FtM@eskimo.com>
- Reply-To: truemanc@intellic.demon.co.uk
- X-NNTP-Posting-Host: intellic.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.30
- X-Mail2News-Path: intellic.demon.co.uk
-
- In article <DLM5xr.FtM@eskimo.com> maryann@eskimo.com "C Marsho" writes:
-
- >If I use the `system' function to execute a DOS command, how can I
- >keep the screen blank? I am talking about the move command
- >specifically. It types:
- > C:\file.txt => c:\dir2\file.txt
- >on the screen, and I don't want it to. How do I prevent this using
- >BC++ 2.0?
- >Reply to maryann@eskimo.com please.
-
- You could try:
-
- system("command > nul");
-
- This traps both stdout and stderr messages. BTW, nul is not a file
- it's special.
-
- - Chris
-
- -============================================================================-
- IntelliCorp Applications Consultant / E-mail: truemanc@intellic.demon.co.uk
- LiveModel and PowerModel are part / CServe: 100255,701
- of IntelliCorp's MODELWORKS / Tel : +44 (0)1344 305305
- application development suite. / Fax : +44 (0)1344 305100
- -============================================================================-
-